home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Control Panel Hide Net.xpl < prev    next >
Text File  |  1999-09-03  |  2KB  |  67 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Appearance\Control Panel\Other Settings"
  5. "NAME"="Visible pages in "Network""
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.01"
  8. "TEXT 1"="Show "File Sharing" page in Network control"
  9. "TEXT 2"="Show "Identification" page in Network control"
  10. "TEXT 3"="Show "Access Control" page in Network control"
  11. "DESCRIPTION 1"="To show a page inside the "Network" control, activate it. To hide it, deactivate it."
  12. "DESCRIPTION 2"="Please note: These settings are for Windows 95 and Windows 98 only."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16. "COMMENT 2"="Thanks to CptSiskoX for the settings!"
  17.  
  18.  
  19. 'All DWORD. 1 = don't show, anything else =show
  20. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\NoFileSharingControl" 
  21. sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\NoNetSetupIDPage"
  22. sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\NoNetSetupSecurityPage"
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26.  if GetWinVer=1 or GetWinVer=3 then
  27.     i=RegReadValue(sV1)
  28.     if i<>1 then SetUIElement 1,true
  29.  
  30.     i=RegReadValue(sV2)
  31.     if i<>1 then SetUIElement 2,true
  32.  
  33.     i=RegReadValue(sV3)
  34.     if i<>1 then SetUIElement 3,true
  35.  
  36.  else
  37.     Call Disable()
  38.  end if
  39. End Sub
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  45.  Call WriteIt(1,sV1)
  46.  Call WriteIt(2,sV2)
  47.  Call WriteIt(3,sV3)
  48. End Sub
  49.  
  50. Sub WriteIt(ITM,VAL)
  51.  b=GetUIElement(ITM)
  52.  if b=false then
  53.     call RegWriteValue(VAL,1,2)
  54.  else
  55.     chk=RegReadValue(VAL)
  56.     if IsEmpty(chk)=false then
  57.        Call RegDeleteValue(VAL)
  58.     end if
  59.  end if
  60. end sub
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.  
  65.  
  66.  
  67.